package com.example.mybatis.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.mybatis.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserInfoMapperXml extends BaseMapper<UserInfo> {
    List<UserInfo>SelectAll();

    List<UserInfo>SelectAll1();

    Integer Innsert(UserInfo userInfo);
    Integer Insert(@Param("userInfo") UserInfo userInfo);

    Integer Update(Integer id);
    Integer Delete(Integer id);

    Integer INSERT(UserInfo userInfo);

    Integer insert1(UserInfo userInfo);

Integer insert2(UserInfo userInfo);


List<UserInfo>select1(UserInfo userInfo);

Integer update1(UserInfo userInfo);

Integer delete1(List<Integer> list);

    List<UserInfo>select2();


    List<Integer>listIdList = List.of(1,2,3,5,8,6);

    int count=10;
    QueryWrapper<UserInfo>wrapper=new QueryWrapper<UserInfo>().in(listIdList.toString());


    void updateByage(@Param("ew") UpdateWrapper<UserInfo> wrapper,@Param("t") int t);



    QueryWrapper<UserInfo>wrapper1=new QueryWrapper<UserInfo>().like("username","wan");
    void updateByname(@Param("ew") UpdateWrapper<UserInfo>wrapper1,@Param("f")int f);

    void updateByname1(@Param("ew") UpdateWrapper<UserInfo>wrapper1);

}
